﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="new.aspx.cs" Inherits="AnyOffice.general.system.bbs._new" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>新建论坛</title>
		
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script src="/aspnet_client/core/function.js"></script>
		<SCRIPT language="javascript">
function check_form()
{
 if(document.Form1.txtBoardNo.value == "")
  {
     alert("排序号不能为空!");
	 document.Form1.txtBoardNo.focus();
     return false;
  }
   if(!checkIsInteger(document.Form1.txtBoardNo.value))
  {
     alert("排序号只能为整数!");
     document.Form1.txtBoardNo.focus();
     return false;
  }
  
  
  if(document.Form1.txtBoardName.value == "")
  {
     alert("论坛主题不能为空!");
     document.Form1.txtBoardName.focus();
     return false;
  }

  if(document.Form1.DeptId.value == "")
  {
     alert("论坛所属部门不能为空!");    
     return false;
  }
  return true;
}
		</SCRIPT>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<asp:Panel id="pnlMain" runat="server">
				<TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
					<TR>
						<TD class="Big"><IMG height="20" src="/images/edit.gif" width="22" align="absMiddle"><SPAN class="big3">
								新建论坛</SPAN><BR>
						</TD>
					</TR>
				</TABLE>
				<BR>
				<TABLE class="small" cellSpacing="1" cellPadding="2" width="500" align="center" border="0" bgcolor="#000000">
					<TR>
						<TD class="TableData" noWrap>排序号：</TD>
						<TD class="TableData"><INPUT class="BigInput" id="txtBoardNo" type="text" maxLength="50" size="4" name="txtBoardNo"
								runat="server">
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>主题：</TD>
						<TD class="TableData"><INPUT class="BigInput" id="txtBoardName" type="text" maxLength="50" size="30" name="txtBoardName"
								runat="server">
						</TD>
					</TR>
					<TR>
						<TD class="TableData" vAlign="top" noWrap>欢迎词：</TD>
						<TD class="TableData"><INPUT class="BigInput" id="txtWelcomeText" type="text" maxLength="100" size="30" name="txtWelcomeText"
								runat="server">
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>所属部门：</TD>
						<TD class="TableData"><INPUT id="DeptId" type="hidden" name="DeptId" runat="server">
							<TEXTAREA class="BigStatic" id="DeptName" name="DeptName" rows="2" readOnly wrap="yes" cols="34"
								runat="server"></TEXTAREA> &nbsp;<INPUT class="SmallButton" title="添加部门" onclick="dept_select('DeptId','DeptName','');" type="button" value="添 加"
								name="button"> &nbsp;<INPUT class="SmallButton" title="清空部门" onclick="clear_double('DeptId','DeptName');" type="button" value="清 空"
								name="button">
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>版主：</TD>
						<TD class="TableData"><INPUT id="Owner" type="hidden" name="Owner" runat="server"> <TEXTAREA class="BigStatic" id="OwnerName" name="OwnerName" rows="2" readOnly wrap="yes" cols="34"
								runat="server"></TEXTAREA> &nbsp;<INPUT class="SmallButton" title="选择人员" onclick="user_select('Owner','OwnerName');" type="button" value="选 择"
								name="button"> &nbsp;<INPUT class="SmallButton" title="清空人员" onclick="clear_double('Owner','OwnerName');" type="button" value="清 空"
								name="button">
						</TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>是否允许匿名发帖：</TD>
						<TD class="TableData"><SELECT class="BigSelect" id="sltIsAnonymous" name="sltIsAnonymous" runat="server">
								<OPTION value="True" selected>允许</OPTION>
								<OPTION value="False">禁止</OPTION>
							</SELECT>
						</TD>
					</TR>
					<TR class="TableControl" align="center">
						<TD noWrap colSpan="2">&nbsp; <INPUT class="BigButton" onclick="return check_form()" type="submit" value="保存" name="submit">&nbsp;&nbsp;
							<INPUT class="BigButton" onclick="location='index.aspx'" type="button" value="返回" name="back">
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
		</form>
	</body>
</HTML>
